package namePrinter;

public class namePrinter 
{

	public static void main(String[] args) 
	{
	
		/*Creates string variable:
		 	- name = name to be print
		 	- format is the string that is printed above and below the name to creat
		 			the box effect
		 */
		
		String name = "Josiah";
		String format = "";
		
		//dashLen is the number of dashes to align 
		//	the format string with the printed name
		
		for(int dashLen = 0; dashLen < name.length(); dashLen++)
		{
			format = format + "-";
		}

		//Add final touches to format string
		
		format = "+" + format + "+";
		
		//Print name in box
		
		System.out.println(format);
		System.out.println("|" + name + "|");
		System.out.println(format);
	}

}